import { getRequest,postBodyRequest,postRequest,getRequestEncode } from "../../libs/axios";

export const queryRolesByPage = (params) => {
	return getRequest('/rancheng-auth/role/queryRolesByPage',params)
}

export const saveOrUpdateRole = (params) => {
	return postBodyRequest('/rancheng-auth/role/saveOrUpdateRole',params)
}

export const deleteRoles = (params) => {
	return postBodyRequest('/rancheng-auth/role/deleteRoles',params)
}

export const getPermissionTree = (params) => {
	return getRequest('/rancheng-auth/permission/queryPermissionTreeVo',params)
}

export const saveRolePermission = (params) => {
	return postBodyRequest('/rancheng-auth/role/saveRolePermission',params)
}

export const queryAllotedPer = (params) => {
	return postBodyRequest('/rancheng-auth/role/queryAllotedPermission',params)
}